import pytest,time
from selenium import webdriver
from Page1 import Page1
from Page2 import Page2
from Page3 import Page3

@pytest.fixture(scope='class')
def setUp() -> None:
    driver = webdriver.Firefox()
    driver.maximize_window()
    yield driver
    driver.quit()

def test_jiuxian(driver):
    po = Page1(driver)
    po.luoji_jiuxian()
    po.login()
    po.user()
    po.password()
    po.loginbtn()

def test_jiuxiann(driver):
    po = Page2(driver)
    po.sousuo()
    po.sousuobtn()
    time.sleep(3)
    po.spxq()
    po.window()
    po.jiaru()
    time.sleep(3)

def test_jiuxiannn(driver):
    po = Page3(driver)
    po.sousuo()
    po.sousuobtn()
    time.sleep(3)
    po.spxq()
    po.window()
    po.shoucang()
    time.sleep(3)

